package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Event_Record", description = "事件记录表")
@TableName(value = "Event_Record")
public class EventRecord extends FBaseEntity implements Serializable {


    
    @ApiModelProperty("生产资源")
    @TableField(value = "resourceId")
    private Long resourceId;
    
    @ApiModelProperty("事件id")
    @TableField(value = "categoryId")
    private Long categoryId;
    
    @ApiModelProperty("事件类型id")
    @TableField(value = "categoryTypeId")
    private Long categoryTypeId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("事件描述")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "eventDesc")
    private String eventDesc;
    
    @ApiModelProperty("事件发起人")
    @TableField(value = "reportedId")
    private Long reportedId;
    
    @ApiModelProperty("事件发起时间")
    @TableField(value = "recordTime")
    private Date recordTime;
    
    @ApiModelProperty("")
    @TableField(value = "responseId")
    private Long responseId;
    
    @ApiModelProperty("")
    @TableField(value = "responseTime")
    private Date responseTime;
    
    @ApiModelProperty("0发起,1被响应，5关闭")
    @TableField(value = "status")
    private Long status;






}

